package com.lsx.service.impl;

import com.lsx.dao.CategoryDao;
import com.lsx.pojo.Category;
import com.lsx.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by pc on 2017/11/19.
 */
@Service("CategoryService")
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao cdao;

    public List<Category> getById(int userId) {
        return cdao.getById(userId);
    }

    public int addCty(Category cty) {
        return cdao.addCty(cty);
    }
}
